public class Heap<T extends Comparable<T>>{
  public T[] heap;
  public int SIZE;
  public int count;

  Heap(int size){
    SIZE = size;
    // reference: https://stackoverflow.com/questions/34827626/cannot-be-cast-to-ljava-lang-comparable
    heap = (T[])new Comparable[SIZE];
    count = 0;
  }


  // TODO: 完善add函数
  public void add (T item){
    if(count >= SIZE){
      // throw new Exception("Heap Overflow");
      System.out.println("Heap Full");
      return;
    }

  }


  // 完善delete函数
  public void delete(){
    
  }

  // 为了测试方便，完善print函数
  public void print(){
  }
}